import Vue from "vue";
import Router from "vue-router";
import List from "@/views/List";
import Create from "@/views/Create";
import Setting from "@/views/Setting";
import Details from "@/views/Details";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/list",
      name: "list",
      component: List,
    },
    {
      path: "/create",
      name: "create",
      component: Create,
    },
    {
      path: "/setting",
      name: "setting",
      component: Setting,
    },
    {
      path: "/details",
      name: "details",
      component: Details,
    },
    {
      path: "/",
      redirect: "/list",
    },
  ],
});
